//index.js
//获取应用实例
const app = getApp()

Page({
	data: {
		phone:"",
		userId:"",
		userName:"",
	},
	//事件处理函数
	logout: function() {
		wx.navigateTo({
			url: '../login/login'
		})
	},
	onLoad: function() {

	},
	getUserInfo: function(e) {
		this.setData({
			userInfo: e.detail.userInfo,
			hasUserInfo: true
		})
	}
})